<?php

namespace App\Exceptions;

class InvalidRequestException extends BaseException
{
    public function __construct($message = '无效的请求')
    {
        parent::__construct($message);
    }

    public function render()
    {
        return response()->json(['code'=>0, 'message'=>$this->message, 'data'=>[]]);
    }
}
